import {RouteRecordRaw, RouterView} from 'vue-router'

const routeName = 'logs'

export const logs: Array<RouteRecordRaw> = [
    {
        path: '/logs',
        name: routeName,
        redirect: '/logs/serverlog',
        component:  () => import(/* webpackChunkName: "logs-index" */ '@/views/logs/index.vue'),
        meta: {
            title: '日志管理',
        },
        children: [
            {
                path: 'serverlog',
                name: `${routeName}-serverlog`,
                meta: {
                    title: '服务器日志',
                },
                component: () => import(/* webpackChunkName: "logs-serverlog" */ '@/views/logs/components/serverlog/serverlog.vue'),
            },
            {
                path: 'clientLog',
                name: `${routeName}-clientLog`,
                meta: {
                    title: '客户端日志',
                },
                component: () => import(/* webpackChunkName: "logs-clientLog" */ '@/views/logs/components/clientLog/clientLog.vue'),
            },
            {
                path: 'dbbackup',
                name: `${routeName}-dbbackup`,
                meta: {
                    title: '数据库日志',
                },
                component: () => import(/* webpackChunkName: "logs-dbbackup" */ '@/views/logs/components/dbbackup/dbbackup.vue'),
            }
        ]
    }
]
